package com.tfswx.jcyw.webssh.bean;

import com.jcraft.jsch.Channel;
import com.jcraft.jsch.JSch;
import lombok.Data;

import javax.websocket.Session;

/**
 * @author 张述江
 * @date 2023-11-06
 */
@Data
public class SSHConnectInfo {
    private JSch jsch;
    private Session webSocketSession;
    private com.jcraft.jsch.Session sshSession;
    private Channel channel;
    private String socketId;
    private String sshid;

    public void setWebSocketSession(Session webSocketSession) {
        this.webSocketSession = webSocketSession;
        this.socketId = webSocketSession.getId();
    }
}
